﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetEmailSettings()" Validate="True" />
<section data-page="config_email" data-title="邮件设置" data-lang="<%=ContentLang%>" data-tool="<%=Config[ESTool]%>">
	<dl class="path1">
		<dt><span>您的位置：</span>邮件设置</dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="basic.aspx?Lang=<%=ContentLang%>" target="ali-navtab">基本设置</a></li>
							<li class="ali-active"><a>邮件设置</a></li>
							<li><a href="water_mark.aspx?Lang=<%=ContentLang%>" target="ali-navtab">水印设置</a></li>
							<li><a href="white_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">白名单</a></li>
							<li><a href="black_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">黑名单</a></li>
							<li><a href="keyword_filter.aspx?Lang=<%=ContentLang%>" target="ali-navtab">关键词过滤</a></li>
							<li><a href="global.aspx?Lang=<%=ContentLang%>" target="ali-navtab">全局设置</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>工具：</th>
								<td>
									<select name="Tool" data-class="<%=ContentLang%>Font" data-ali-widget="combo">
										<option value="DotNet">DotNet</option>
										<option value="JMail">JMail</option>
									</select>
								</td>
							</tr>
							<tr>
								<th>您的姓名：</th>
								<td><input type="text" name="Name" value="<%=Config[ESName]%>" size="50" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>电子邮件地址：</th>
								<td><input type="text" name="Address" value="<%=Config[ESAddress]%>" size="50" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>帐户：</th>
								<td><input type="text" name="Account" value="<%=Config[ESAccount]%>" size="50" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>密码：</th>
								<td><input type="password" name="Password" size="50" maxlength="100" class="ali-input">不修改，则留空</td>
							</tr>
							<tr>
								<th>发送邮件服务器（SMTP）：</th>
								<td><input type="text" name="Server" value="<%=Config[ESServer]%>" size="50" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>我的发送服务器（SMTP）要求验证：</th>
								<td>
									<%If Convert.ToBoolean(Config[ESNeedValidation])%>
										<label><input type="radio" name="NeedValidation" value="true" checked="checked">是</label>
										<label><input type="radio" name="NeedValidation" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="NeedValidation" value="true">是</label>
										<label><input type="radio" name="NeedValidation" value="false" checked="checked">否</label>
									<%EndIf%>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>